package android.slc.appdb.user.entity;

import android.slc.db.entity.IDbEntity;

import java.io.Serializable;

import io.objectbox.annotation.Entity;
import io.objectbox.annotation.Id;

/**
 * 用户表
 */
@Entity
public class User implements IDbEntity<Long> {
    /**
     * 用户ID
     */
    @Id(assignable = true)
    protected long userId;

    /**
     * 部门ID
     */
    protected long deptId;

    /**
     * 用户账号
     */
    protected String userName;

    /**
     * 用户昵称
     */
    protected String nickName;

    /**
     * 用户邮箱
     */
    protected String email;

    /**
     * 手机号码
     */
    protected String phonenumber;

    /**
     * 用户性别
     */
    protected String sex;

    /**
     * 用户头像
     */
    protected String avatar;

    /**
     * 密码
     */
    protected String password;

    /**
     * 帐号状态（0正常 1停用）
     */
    protected String status;

    /**
     * 删除标志（0代表存在 2代表删除）
     */
    protected String delFlag;

    /**
     * 最后登录时间
     */
    protected String loginDate;

    public long getUserId() {
        return userId;
    }

    public void setUserId(long userId) {
        this.userId = userId;

    }

    public long getId() {
        return userId;
    }

    public void setId(long userId) {
        this.userId = userId;
    }

    public long getDeptId() {
        return deptId;
    }

    public void setDeptId(long deptId) {
        this.deptId = deptId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getPhonenumber() {
        return phonenumber;
    }

    public void setPhonenumber(String phonenumber) {
        this.phonenumber = phonenumber;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(String delFlag) {
        this.delFlag = delFlag;
    }

    public String getLoginDate() {
        return loginDate;
    }

    public void setLoginDate(String loginDate) {
        this.loginDate = loginDate;
    }

    @Override
    public Long getEId() {
        return getId();
    }

    @Override
    public void setEId(Long eId) {
        setId(eId);
    }
}